package com.hziee.graduate.ticket.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_tickets")
public class Tickets extends Model<Tickets> {

    //电影票编号
    @TableId(type = IdType.AUTO)
    private Long ticketId;
    //属于哪个影厅
    private Long roomId;
    //看了那不电影
    private Long movieId;
    //使用了哪张优惠券
    private Long couponId;
    //属于那个订单
    private String orderId;
    //位于第几排
    private Integer seatRow;
    //位于第几列
    private Integer seatCol;
    //电影票的价格
    private Integer ticketPrice;
    //折后价
    private Integer afterPrice;

    private Integer payStatus;

    private Integer checkStatus;

    private Long userId;

    private Long scheduleId;



    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.ticketId;
    }
}

